<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->


<!DOCTYPE html
  PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en-us" xml:lang="en-us">
<head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="DC.Type" content="topic">
<meta name="DC.Title" content="How Do I Change the Time Zone and Time of the Host?">
<meta name="DC.Format" content="XHTML">
<meta name="DC.Identifier" content="EN-US_TOPIC_0000002200116621">
<meta name="DC.Language" content="en-us">
<link rel="stylesheet" type="text/css" href="public_sys-resources/commonltr.css">
<title>How Do I Change the Time Zone and Time of the Host?</title>
</head>
<body style="clear:both; padding-left:10px; padding-top:5px; padding-right:5px; padding-bottom:5px"><a name="EN-US_TOPIC_0000002200116621"></a><a name="EN-US_TOPIC_0000002200116621"></a>

<h1 class="topictitle1">How Do I Change the Time Zone and Time of the Host?</h1>
<div><p>If the time of the host where the client is to be installed is inconsistent with that of the <span>OceanProtect</span> device, you can change the time zone and time of the host by referring to this section.</p>
<div class="section"><h4 class="sectiontitle">Linux OS</h4><p>The following uses SUSE Linux Enterprise Server 12 SP4 as an example:</p>
<ol><li><span>Use PuTTY to log in to the host where the client is to be installed as user <strong id="EN-US_TOPIC_0000002200116621__en-us_topic_0000002200031305_b916917212">root</strong>.</span></li><li><span>Run the following commands to change the time zone of the host where the client is to be installed.</span><p><ul><li>To change the time format to Coordinated Universal Time (UTC), run the following command:<pre class="screen">ln -sf /user/share/zoneinfo/UTC /etc/localtime</pre>
</li><li>To change the time format to China Standard Time (CST), run the following command:<pre class="screen">ln -sf /user/share/zoneinfo/<em>Asia/Shanghai</em> /etc/localtime</pre>
<div class="note"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p>Replace <em>Asia/Shanghai</em> in the command with the target time zone.</p>
</div></div>
</li></ul>
</p></li><li><span>Run the following command to change the system time of the host where the client is to be installed:</span><p><pre class="screen">date -s "20241125 20:22:35"</pre>
</p></li><li><span>Run the following command to synchronize the hardware time of the host where the client is to be installed with the system time:</span><p><pre class="screen">hwclock --systohc </pre>
</p></li></ol>
</div>
<div class="section"><h4 class="sectiontitle">AIX OS</h4><p>The following uses SUSE Linux Enterprise Server 12 SP4 as an example:</p>
<ol><li><span>Use PuTTY to log in to the host where the client is to be installed as user <strong id="EN-US_TOPIC_0000002200116621__en-us_topic_0000002200031305_b916917212_1">root</strong>.</span></li><li><span>Run the following command to access System Management Interface Tool (SMIT):</span><p><pre class="screen">smit</pre>
</p></li><li><span>When information similar to the following is displayed, use arrow keys to select <strong>System Environments</strong> and press <strong>Enter</strong>:</span><p><pre class="screen">Move cursor to desired item and press Enter.

  Software Installation and Maintenance
  Software License Management
  Manage Editions
  Devices
  System Storage Management (Physical &amp; Logical Storage)
  Security &amp; Users
  Communications Applications and Services
  Workload Partition Administration
  Print Spooling
  Advanced Accounting
  Problem Determination
  Performance &amp; Resource Scheduling
  <strong>System Environments</strong>
  Processes &amp; Subsystems
  Applications
  Installation Assistant
  Electronic Service Agent
  Cluster Systems Management
  Using SMIT (information only)</pre>
</p></li><li><span>When information similar to the following is displayed, use arrow keys to select <strong>Change / Show Date and Time</strong> and press <strong>Enter</strong>:</span><p><pre class="screen">Move cursor to desired item and press Enter.

  Stop the System
  Aix Security Expert
  Assign the Console
 <strong> Change / Show Date and Time</strong>
  Manage Language Environment
  Change / Show Characteristics of Operating System
  Change / Show Number of Licensed Users
  Broadcast Message to all Users
  Manage System Logs
  Change / Show Characteristics of System Dump
  Change / Show Default Browser
  Web-based System Manager
  System Cryptographic Operational Mode
  Manage Remote Reboot Facility
  Manage System Hang Detection</pre>
</p></li><li><span>When information similar to the following is displayed, select the corresponding option to change the time zone or time and press <strong>Enter</strong>:</span><p><pre class="screen">Move cursor to desired item and press Enter.

  Change / Show Date &amp; Time
  Change Time Zone Using System Defined Values
  Change Time Zone Using User Inputted Values</pre>
</p></li></ol>
</div>
<div class="section"><h4 class="sectiontitle">Windows OS</h4><p>The following uses Windows 10 as an example:</p>
<ol><li><span>Open <strong>Control Panel</strong> and click <strong>Clock and Region</strong>.</span></li><li><span>Click <strong>Set the time and date</strong>.</span></li><li><span>On the <strong>Date and Time</strong> page, click <strong>Change time zone...</strong>, select a time zone, and click <strong>OK</strong>.</span></li><li><span>On the <strong>Date and Time</strong> page, click <strong>Change date and time...</strong>, set the time, and click <strong>OK</strong>.</span></li><li><span>Click <strong>OK</strong>.</span></li></ol>
</div>
</div>

<div class="hrcopyright"><hr size="2"></div><div class="hwcopyright">Copyright &copy; Huawei Technologies Co., Ltd.</div></body>
</html>